#include <stdio.h>

int main(int argc, char *argv[])
{
        int a = 65, b = 0;

        printf("%#x %d\n", a, a);

//        b = a / 16;
        b = a >> 4;
        printf("%#x %d\n", b, b);
        
        //b = a % 16;
        b = a & 0xf;
        printf("%#x %d\n", b, b);


 
        return 0;
}
